const mongoose=require("mongoose");
const dburl=require("./mongoose");

let Schema=mongoose.Schema;
let productSchema = new Schema({
  "src":String,
  "price":String
});
let productModel=dburl.model("indexgoods",productSchema);
module.exports= {
  //查询(登录)
  "findAll": function (where,func) {
    productModel.find({},function(err,data){
      if(!err){
        func(data);
      }
    });
  }
}
